import req from '@/utils/request';
import * as URL from '@/constants/api';

// 获取搜索结果
export function getResultList(value) {
  return req({
    url: URL.SEARCH,
    params: {
      q: value,
    }
  })
    .then(res => res.data?.data.results);
}

